export class Toast {
  static show(title: string, duration = 3000, icon?: "success" | "error") {
    uni.showToast({ title, icon: icon || "none", duration });
  }

  static showLoading(title = "加载中") {
    uni.showLoading({ mask: true, title });
  }

  static hideLoading() {
    uni.hideLoading();
  }
}
